import java.util.Arrays;
import java.util.Scanner;

class Test1{

    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int det=1;
        int a=0;
        int i=0;
        int sum=0;
        while (scanner.hasNext()){
            try {
                a=scanner.nextInt();
            }
            catch (RuntimeException e){
                String s=scanner.next();
                det=0;
            }
            finally {
                if(det==1) {
                    sum+=a;
                }
                det=1;
            }
        }
        System.out.println(sum);
    }
}